for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import EventPoll from '../event_poll'
import { ulid } from 'ulid'
class App {
constructor (baseUrl, eventPollRepository) {
this.baseUrl = baseUrl
this.eventPollRepository = eventPollRepository
}
newEventPoll (aTitle, posibleDates) {
const aEventPoll = new EventPoll(ulid(), this.baseUrl, aTitle, posibleDates)
this.eventPollRepository.save(aEventPoll)
return new Promise((resolve) => {
resolve(aEventPoll.id)
})
export default App